import axios from '../plugin/axios/axios'

//请求国家
export const Accesstoareas = () => {
  return axios({
      url: `/api/v1/areas/level/country`,
      method: 'GET',
  },true)
}
//请求省级
export const province = (data) =>{
    return axios({
        url: `/api/v1/areas/level/province?parentCode=${data}`,
        method: 'GET',
    },true)
}
//请求市级
export const city = (data) =>{
    return axios({
        url: `/api/v1/areas/level/city?parentCode=${data}`,
        method: 'GET',
    },true)
}
export default {
    Accesstoareas,
    city,
    province
}